/*
 * @Author:  dongdong.wu
 * @Date: 2021-03-15 13:55:39
 * @Description: 表格组件操作栏
 */
const renderOperatorColumn = function(h) {
  if (this.$scopedSlots.btns) {
    return h("el-table-column", {
      props: {
        "header-align": "center",
        fixed: "right",
        align: "center",
        width: this.btnWidth,
        label: this.btnLabel
      },
      scopedSlots: {
        default: props => {
          return h(
            "span",
            {
              class: "ele-table_operator"
            },
            this.$scopedSlots.btns({
              row: props.row,
              index: props.$index
            })
          );
        }
      }
    });
  }
};
export default renderOperatorColumn;
